package org.iabako.shared.entity.enumeration;

import org.iabako.client.tools.Messages;

/**
 * Created by jose on 14/06/15.
 */
public enum PriceUnit implements LabelEnum {

    unit("price_unit_unit", ""),
    //weight
    _separator1("", ""),
    gram("price_unit_gram", "price_unit_gram_acronym"),
    kilogram("price_unit_kilogram", "price_unit_acronym_kilogram"),
    pound("price_unit_pound", "price_unit_acronym_pound"),
    ton("price_unit_ton", "price_unit_acronym_ton"),

    //distance
    _separator2("", ""),
    meter("price_unit_meter", "price_unit_acronym_meter"),
    kilometer("price_unit_kilometer", "price_unit_acronym_kilometer"),
    feet("price_unit_feet", "price_unit_acronym_feet"),
    mile("price_unit_mile", "price_unit_acronym_mile"),

    //area & volume
    _separator3("", ""),
    meter2("price_unit_meter2", "price_unit_acronym_meter2"),
    meter3("price_unit_meter3", "price_unit_acronym_meter3"),
    liter("price_unit_liter", "price_unit_acronym_liter"),
    gallon("price_unit_gallon", "price_unit_acronym_gallon");

    String labelKey;
    String completeLabel;

    PriceUnit(String completeLabel, String labelKey) {
        this.labelKey = labelKey;
        this.completeLabel = completeLabel;
    }

    public String getLabel() {
        return Messages.getLabel(labelKey);
    }

    public String getCompleteLabel() {
        return Messages.getLabel(completeLabel);
    }

    public String getLabelKey() {
        return labelKey;
    }
}
